<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
	$user1 = 2;
	$user2 = 2;
	$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
	$user1 = 1;
	$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
	$user2 = 1;
	$colspan = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
	$right = 1;
}
$option 	= mosGetParam($_REQUEST, 'option', '');
$task		= mosGetParam($_REQUEST, 'task', '');
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/css/style.css" type="text/css">
<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/css/phantrang.css" type="text/css">
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.cycle/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.kwicks-1.5.1.js"></script>
<!-- Lightbox -->
<link href="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/jquery.lightbox-0.5.min.js" language="javascript" type="text/javascript"></script>
<!-- End Lightbox --> 
</head>
<body>
		<!--<div id="topmenu"></div> -->
		<div id="mainbanner">
			<div id="banner">
		    <div style="width:252px; height:125px; float:right; margin-right:5px;">
		    	<!--<div style="text-align:right; margin-top:12px; margin-left:3px;" id="advansearch"><img src="<?php echo $mosConfig_live_site;?>/templates/dogolangchang/images/searchtext.jpg" align="left" width="88" height="18">&nbsp;&nbsp;</div>-->
				<?php //mosLoadModules('user4');?>		        
		        <!--<div style="margin-top:30px; margin-left:130px; color:#b88351; cursor:pointer" id="cart_status" class="vtip" title="Click view cart">Có (<strong>0</strong>) Sản phẩm</div>-->
		    </div>
		    </div>
		</div>
		<!--[if IE 6]>
		<style>
		* html #tblcomtent 
		{
			background:none;
			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://dongngo.com/images/binh.png',sizingMethod='crop');
		}    
		* html #about-home
		{
			background:none;
			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://dongngo.com/images/gioithieu1.png',sizingMethod='crop');
		} 
		</style> 
		<![endif]-->
		
		<div id="menubar">
			<div style="width:984px; margin:0 auto"><?php require ('modules/menuTop.php');?></div>
		</div>
		<div id="submenubar"></div>
		<div id="content-page">
			<table id="tblcomtent" align="center" border="0" cellpadding="0" cellspacing="0" width="980">
		  <tbody><tr>
		    <td style="padding-top: 10px;" valign="top" width="274" height="500">
		    <div style="width:267px; clear:both; margin-left:7px;"></div>
		    <?php 
		    if (!$task || $task==''){
				require_once ('modules/about.php');		    
		    }
		    ?>
		    <div id="menuleft"> </div>
		    <div id="menuleft1">
		        <div id="menuleft2">
		        <?php require_once ('modules/special.php');?>
		        <?php require_once ('modules/saleoff.php');?>
		        <?php require_once ('modules/selling.php');?>	
		       	<?php require_once ('modules/support.php');?>
		       	<?php require_once ('modules/bando.php');?>  	 
	          	<div style="background:url(<?php echo $mosConfig_live_site;?>/templates/dogolangchang/images/bgline.jpg) repeat-x; height:28px; width:248px; padding-top:3px; clear:both"><span id="titlemenuleft">Thống kê truy cập</span></div>
	          	<?php mosLoadModules('user9');?>
				<div style="clear:both; height:30px;"></div>
		        </div>
		    </div>
		    </td>
		    <td valign="top" width="787">
		    <?php
		    if ($task){
		    	mosMainBody();
		    }else{
			    require ('modules/slideshow.php');
			    require ('modules/product_home.php');
		    } 
		    ?> 
		    </td>
		  </tr>
		</tbody></table>
		
		</div>
		<div id="footer">
			<div style="width:500px; float:left; cursor:pointer; padding-left:15px; font-size:13px; font-weight:bold; line-height:22px; font-family:Arial, Tahoma;">
				Địa chỉ: Cụm làng nghề - Xã Chàng Sơn - Thạch Thất - Hà Nội.<br />
				Điện thoại: (04).66.58.6668 - Mobile: 01257.668668
			</div>
			<div style="width:300px; float:right; cursor:pointer">Copyright © 2011, Bản quyền thuộc về <a href="<?php echo $mosConfig_live_site;?>" target="_blank">dogolangchang.vn</a></div>
		</div>
		<script type="text/javascript">
		$(function() {
			$('#tab_content').cycle({
		        fx:     'fade',
		        timeout: 0,
		        next: '#btn_tab_next',
		        prev: '#btn_tab_prev'
		    });
			// show photo
		    $('#show_photo a').lightBox({
		    	imageLoading: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-ico-loading.gif',	
				imageBtnPrev: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-btn-prev.gif',		
				imageBtnNext: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-btn-next.gif',		
				imageBtnClose: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-btn-close.gif',		
				imageBlank:	'<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-blank.gif'	
		    });
		 	// show ban do
		    $('#bosuutap a').lightBox({
		    	imageLoading: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-ico-loading.gif',	
				imageBtnClose: '<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-btn-close.gif',		
				imageBlank:	'<?php echo $mosConfig_live_site;?>/templates/dogolangchang/js/jquery.lightbox/images/lightbox-blank.gif'	
		    });
		});
		</script>
</body>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24830845-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</html>
